button: Fix in_button checks
authorTimm Bäder <mail@baedert.org>
Sat, 17 Jun 2017 07:27:03 +0000 (09:27 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 20 Jul 2017 01:27:14 +0000 (21:27 -0400)
commita4d2da76b3bd16ccf686cbbf2522837b3a18cc53
treee7596f1d0d3be78f4f66b9c05333b8de30c8038c
parent12fdb19d630461519581c04686f9376bfce811aa
button: Fix in_button checks

The gesture coords are relative to the button's origin, so use
gtk_widget_get_own_allocation to check if the coords are inside the
button.
gtk/gtkbutton.c